<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <c:import url="common.jsp"></c:import>
    <script>
        function flashCaptcha() {
            $("#captcha").attr("src", "captcha.action?" + new Date());
        }
    </script>
    <title>登录</title>
</head>
<body>
<c:import url="nav.jsp"></c:import>
<%--	<div style="text-align: center; width: 500px; margin: 0 auto">--%>

<div class="col-md-12" style="padding-top: 50px">
<div class="col-md-4"></div>
<div class="col-md-8">
    <form action="login.action" method="post" class="form-horizontal">
        <div class="form-group">
            <div class="col-md-8">
            <label for="uid">用户名：</label>
                <input type="text" class="form-control"
                       id="uid" name="uid" value="1" placeholder="请输入用户名">
            </div>
            <c:set var="uuid" value="${uid}"></c:set>
            <p style="color: #ff0000;">
                <c:if test="${uid!=null}">请牢记您的唯一标识，以后登录使用</c:if>
            </p>
        </div>
        <div class="form-group">
            <div class="col-md-8">
            <label for="pass">密码：</label>
                <input type="password" class="form-control" value="123456"
                       id="pass" name="pass" maxlength="200" placeholder="请输入密码">
            </div>

        </div>
        <div class="form-group">
            <div class="col-md-8">
            <label for="pass">验证码：
                <img id="captcha" src="captcha.action" onclick="flashCaptcha()"></label>
                <input type="text" class="form-control"
                       id="simpleCaptcha" name="captcha" placeholder="请输入验证码">
            </div>
            <p>${mess}</p>
        </div>
        <div style="text-align: center">
            <button type="submit" class="btn btn-primary">LOGIN</button>
        </div>
    </form>
</div>
</div>
</body>
</html>